Skip to main content

mergMPItemArtwork

Type​

function

Summary​

Get an image representing a media item

Syntax​

mergMPItemArtwork(<pQueryPointer>, <pCollectionNumber>, <pItemNumber>, <pSize>)

Description​

For example the album cover artwork.

Parameters​

NameTypeDescription

pQueryPointer

a pointer to the query in memory.

pCollectionNumber

a number between 1 and the result of mergMPQueryCollectionCount.

pItemNumber

a number between 1 and the result of mergMPQueryCollectionItemCount.

pSize

the size of the image to return as width,height. Note that apple seems to think when you ask for one image size it should give you something else so don't rely on the size or even aspect ratio of your returned image.

Value​

NameTypeDescription

return

the artwork as PNG data.

Compatibility and Support​

Introduced

LiveCode 8.0

OS

ios

Platforms

mobile

Thank you for your feedback!

Was this page helpful?